<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>v-text指令</title>
</head>

<body>

    <!-- 引入Vue.js -->
    <script src="../js/vue.js"></script>


    <!-- <div id="root">
        {{message}}
    </div> -->

    <div id="root">
        <div v-text="message"></div>
    </div>

    <script>
        var root = new Vue({
            el: "#root",
            data: {
                message: "黑马程序员"
            }
        })
    </script>


</body>

</html>